package models

import (
	"io/ioutil"
	"os"
)

var transport_contract string
var power_of_attorney string
var letter_of_authorization string
var push_format = "推送通知：您的运单号:%s,状态发生改变，请查看！"

func init() {
	if file, err := os.Open("template/transport_contract.html"); err == nil {
		if body, err := ioutil.ReadAll(file); err == nil {
			transport_contract = string(body)
		}
		file.Close()
	}
	if file, err := os.Open("template/power_of_attorney.html"); err == nil {
		if body, err := ioutil.ReadAll(file); err == nil {
			power_of_attorney = string(body)
		}
		file.Close()
	}
	if file, err := os.Open("template/letter_of_authorization.html"); err == nil {
		if body, err := ioutil.ReadAll(file); err == nil {
			letter_of_authorization = string(body)
		}
		file.Close()
	}
}

type Order struct{}
